package com.hy.admin.entity;

import com.hy.admin.helper.request.MemberRequest;
import com.hy.core.util.PropertyUtils;
import com.hy.db.domain.BaseEntity;

import java.io.Serializable;

/**
 * Created by wayne on 17/12/25.
 */
public class MemberEntity extends BaseEntity {

//    private static final long serialVersionUID = -310793784665726391L;

    private String memberNo;
    private Integer memberType;
    private Long accountId;
    private String nickName;
    private String foreName;
    private String surName;
    private Integer gender;
    private String facePath;
    private String mobile;
    private String individualitySign;
    private String email;
    private String homeTelephone;
    private String grade;
    private Integer age;
    private String certPic;
    private String city;
    private Integer auditStatus;
    private String deviceToken;
    private String deviceIdentify;
    private String aliDeviceId;
    private String access_token;

    public String getMemberNo() {
        return memberNo;
    }

    public void setMemberNo(String memberNo) {
        this.memberNo = memberNo;
    }

    public Integer getMemberType() {
        return memberType;
    }

    public void setMemberType(Integer memberType) {
        this.memberType = memberType;
    }

    public Long getAccountId() {
        return accountId;
    }

    public void setAccountId(Long accountId) {
        this.accountId = accountId;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getForeName() {
        return foreName;
    }

    public void setForeName(String foreName) {
        this.foreName = foreName;
    }

    public String getSurName() {
        return surName;
    }

    public void setSurName(String surName) {
        this.surName = surName;
    }

    public Integer getGender() {
        return gender;
    }

    public void setGender(Integer gender) {
        this.gender = gender;
    }

    public String getFacePath() {
        return facePath;
    }

    public void setFacePath(String facePath) {
        this.facePath = facePath;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getIndividualitySign() {
        return individualitySign;
    }

    public void setIndividualitySign(String individualitySign) {
        this.individualitySign = individualitySign;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getHomeTelephone() {
        return homeTelephone;
    }

    public void setHomeTelephone(String homeTelephone) {
        this.homeTelephone = homeTelephone;
    }

    public String getGrade() {
        return grade;
    }

    public void setGrade(String grade) {
        this.grade = grade;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getCertPic() {
        return certPic;
    }

    public void setCertPic(String certPic) {
        this.certPic = certPic;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public Integer getAuditStatus() {
        return auditStatus;
    }

    public void setAuditStatus(Integer auditStatus) {
        this.auditStatus = auditStatus;
    }

    public String getDeviceToken() {
        return deviceToken;
    }

    public void setDeviceToken(String deviceToken) {
        this.deviceToken = deviceToken;
    }

    public void updateData(MemberRequest memberRequest){
        PropertyUtils.copyPropertiesOfNotNull(memberRequest,this);
    }

    public String getDeviceIdentify() {
        return deviceIdentify;
    }

    public void setDeviceIdentify(String deviceIdentify) {
        this.deviceIdentify = deviceIdentify;
    }

    public String getAliDeviceId() {
        return aliDeviceId;
    }

    public void setAliDeviceId(String aliDeviceId) {
        this.aliDeviceId = aliDeviceId;
    }

	public String getAccess_token() {
		return access_token;
	}

	public void setAccess_token(String access_token) {
		this.access_token = access_token;
	}
}
